package com.center.biz.impl;

import com.center.api.model.EduMsgSystem;
import com.center.api.remote.RemoteEduMsgSystemService;
import com.center.biz.dao.EduMsgSystemMapper;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service(version = "1.0",interfaceClass = RemoteEduMsgSystemService.class)
public class RemoteEduMsgSystemServiceImpl implements RemoteEduMsgSystemService {

    @Autowired
    private EduMsgSystemMapper eduMsgSystemMapper;

    @Override
    public int save(EduMsgSystem eduMsgSystem) {
        return eduMsgSystemMapper.insertSelective(eduMsgSystem);
    }

    @Override
    public int delete(int id) {
        return eduMsgSystemMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int update(EduMsgSystem eduMsgSystem) {
        return eduMsgSystemMapper.updateByPrimaryKeySelective(eduMsgSystem);
    }

    @Override
    public EduMsgSystem getById(int id) {
        return eduMsgSystemMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<EduMsgSystem> select(EduMsgSystem eduMsgSystem) {
        return null;
    }
}
